# @Time    : 2023/3/13 19:58
# @Author  : SunJian
# @Email   : 330160114@qq.com
# @File    : tasks.py
# @Software: PyCharm
"""
文件说明：

"""
from celery_tasks.main import celery_app
from ronglian_sms_sdk import SmsSDK

@celery_app.task(name='send_sms')
def send_sms_code(mobile, sms_code):
    accId = '2c9488768658b82f0186a6a46c261231'
    accToken = 'b86ef9bb835f4580bb18d538a24b5403'
    appId = '2c9488768658b82f0186a6a46d5e1238'

    sdk = SmsSDK(accId, accToken, appId)
    result = sdk.sendMessage(1, mobile, (sms_code,5))